package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Entity
@Table(name = "order_rx_drugs")
public class RxDrugs implements Serializable {

	private static final long serialVersionUID = 165266487718313848L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "rx_order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String rxOrderNo;
	@Column(name = "price_money", columnDefinition = "decimal(10,2)")
	private BigDecimal price;
	@Column(name = "d_type_tinyint", columnDefinition = "tinyint(1) comment '1=中医,2=西医'")
	private Integer type;
	@Column(name = "drug_id_bigint", columnDefinition = "bigint(20)")
	private Long drugId;
	@Column(name = "drug_name_nvarchar", columnDefinition = "varchar(255)")
	private String drugName;
	@Column(name = "spec_nvarchar", columnDefinition = "varchar(255)")
	private String spec;
	@Column(name = "num_int", columnDefinition = "int(11)")
	private Integer num;
	@Column(name = "guild_bit", columnDefinition = "tinyint(1)")
	private Integer guild;
	@Column(name = "med_way_nvarchar", columnDefinition = "varchar(255)")
	private String medWay;
	@Column(name = "freq_nvarchar", columnDefinition = "varchar(255)")
	private String freq;
	@Column(name = "does_int", columnDefinition = "int(11)")
	private Integer does;
	@Column(name = "does_unit_nvarchar", columnDefinition = "varchar(255)")
	private String doesUnit;
	@Column(name = "day_int", columnDefinition = "int(11)")
	private Integer day;
	@Column(name = "remark_nvarchar", columnDefinition = "varchar(255)")
	private String remark;
}
